#include "HufArc.h"
unsigned long long int strToInt (char * buf,size_t size)
{
	unsigned long long int num = 0;
	int i = size - 1;
	int m = 0;
	if ( i >= 1)
	{
	while (i>= 0)
	{
		num += (unsigned char)buf[i];
		if (i != 0)	num <<= 8;
		i--;
	}
	} else {
		num = (unsigned char) buf [i];
	}
	return num;
}